package com.neusoft.hifly.rpc.email.dao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.neusoft.hifly.core.pojo.ApiResponse;
import com.neusoft.hifly.rpc.email.domain.MailDTO;
import com.neusoft.hifly.rpc.sms.dao.fallback.SMSFallback;

/**
 * Title: 邮件服务
 * <p>
 * Description: 邮件 Dao
 * <p>
 * Copyright: 2019
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
@FeignClient(value = "ctcloud-cbb-push", fallbackFactory = SMSFallback.class)
public interface IEmailDao {
	/**
	 * 发送邮件
	 *
	 * @param obj
	 *            邮件对象
	 * @param message
	 *            发送的信息内容
	 */
	@RequestMapping(value = "/push/api/v1/email/send", method = RequestMethod.POST)
	<T> ApiResponse<T> sendMail(@RequestBody final MailDTO obj);

}
